@PACKAGE_INIT@

include(CMakeFindDependencyMacro)

# the following should only be needed when building statically

if (@USE_MPI@)
  find_dependency(MPI)
endif ()

if (@USE_OPENMP@)
  find_dependency(OpenMP)
endif ()

if ("@USE_ACCEL@" MATCHES "cuda")
  enable_language(CUDA)
  find_dependency(CUDAToolkit)
endif ()

if ("@USE_ACCEL@" MATCHES "hip")
  enable_language(HIP)
  find_dependency(hip)
  find_dependency(hipblas)
endif ()


if (("@USE_SMM@" MATCHES "libxsmm") OR ("@USE_ACCEL@" MATCHES "opencl"))
  find_package(PkgConfig)
  pkg_check_modules(LIBXSMM IMPORTED_TARGET GLOBAL libxsmmf)
  if (@USE_OPENMP@)
    pkg_check_modules(LIBXSMMEXT IMPORTED_TARGET GLOBAL libxsmmext)
  endif ()
endif ()

include("${CMAKE_CURRENT_LIST_DIR}/DBCSRTargets.cmake")
